package ai.moran.demo.config;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
public class RedissonConfig{

    public  final String  OUTBOUNDJOBDETAIL_GETNEXTUNCALL="redissionLock:morBi:OutboundJobDetailServiceImpl:getNextUncall";

    @Bean
    public RedissonClient getClient() {
        Config config = new Config();
        config.useSingleServer().setAddress("redis://101.201.210.129:6379");
        return Redisson.create(config);
    }

}